<?php


   class TousuAction extends Action{
   
   
      public function index(){
	    
		$this->id=$_GET['id'];
	  session('tousuid',$_GET['id']);
	  
	//  dump(session('tousuid'));
	  
	    $this->display();
	  
	  }
   
     public function two(){
	   
	    $this->id=$_GET['id'];
	   
	    $this->display();
	 
	 }
	 
	 
	 public function three(){
	 
	   if(!empty($_POST)){
	   
	     $_POST['oid']=session('tousuid');
		  $_POST['time']=time();
	   
	      $re=M('tousu')->add($_POST);
	   
	   
	   }
	 
	 
	 
	   $this->display();
	 
	 }
	 
	 
	 
	 public function jinzhi(){
	 
	   $this->display();
	 
	 }
   
   
   }